//hibenate 实现
package com.cr.backbone.hibenate;

import java.util.List;

/**
 * 数据库常用操作接口-数据层
 * @author huxh
 *	
 * @param <T>
 */
public interface AppBaseDAO<T> {


	public T load(Long id);
	
	public T get(Long id);

	public void update(T t);

	public Long save(T t);

	public void delete(T t);

	public List<T> getList();

	public void deleteById(Long id);

	public void deleteAll();

	public int count();
	
	
	/**
	 * 分页
	 */
	/**
	 * 分页by QueryParam ,Pagination
	 * @methodDescribe
	 * @param param
	 * @param page
	 * @return
	 * @author xianghua.hu
	 * @date 2012-2-26 下午09:59:54
	 */
	public Pagination getPageByCriteria(final QueryParam param, Pagination page);
	
	
}
